package com.uminho.tools;

import java.util.Date;
import java.util.HashMap;

public class Disponibilidades {
	public static HashMap<Date, Integer> busyDays;
	public static HashMap<Date, Integer> serviceBusyDays;
	Disponibilidades(){
	}
	public static void derementBusyDays(Date d){
		int i = (int)busyDays.get(d);
		i=i-1;
		if(i>0) busyDays.put(d, new Integer(i));
		else busyDays.remove(d);
	}
	public static void derementserviceBusyDays(Date d){
		int i = (int)serviceBusyDays.get(d);
		i=i-1;
		if(i>0) serviceBusyDays.put(d, new Integer(i));
		else serviceBusyDays.remove(d);
	}
	
}
